#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <regex.h>
#include <unistd.h>
#include <sstream>


#include <errno.h>
#include <vector>
#include <string.h>
#include <exception>
#include <ctype.h>

#include "Konfig.h"

// Test for regular file - see stat(3)
#ifndef S_ISREG
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif

// Test for directory - see stat(3)
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & _IFMT) == _IFDIR)
#endif



using namespace std;

struct StatObj {
  int lev;
  string msg;
};

struct FileFilter {

  string expr;
  string explanation;

};

class List {

  public:
  char checkFile(const char *path);
  Konfig conf;

  private:
  int Match(const char *s, const char *regex);
};



